package com.cslc.mp.dao;

import com.cslc.mp.dao.DAO.IFaultDAO;
import com.cslc.mp.dao.DAO.IUserDAO;
import com.cslc.mp.dao.proxy.FaultDAOProxy;
import com.cslc.mp.dao.proxy.UserDAOProxy;

/**
 *	dao工厂类
 * @author kll
 *
 */
public class DAOFactory {
	public static IUserDAO getIUserDAOInstance() {
		IUserDAO dao =null;
		dao = new UserDAOProxy();
		return dao;
	}
	
	/**
	 * 获取故障信息DAO实例
	 * @return 故障dao实例
	 */
	public static IFaultDAO getIFaultDAOInstance() {
		IFaultDAO dao = null;
		try {
			dao = new FaultDAOProxy();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return dao;
	}
}
